styleproperty: Use _gtk_style_property_get_name()
authorBenjamin Otte <otte@redhat.com>
Sat, 31 Dec 2011 15:40:06 +0000 (16:40 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:52 +0000 (18:37 +0100)
gtk/gtkcsslookup.c
gtk/gtkcssprovider.c

index 1dfb6b1c58332696183a3ad3cb728f6df8159a59..50ee2d569716c115e3c27f14724533be0ceb3894 100644 (file)
@@ -202,7 +202,7 @@ _gtk_css_lookup_resolve (GtkCssLookup    *lookup,
           GValue value = { 0, };
           /* Set NULL here and do the inheritance upon lookup? */
           gtk_style_context_get_property (parent,
-                                          prop->pspec->name,
+                                          _gtk_style_property_get_name (prop),
                                           gtk_style_context_get_state (parent),
                                           &value);
           _gtk_style_properties_set_property_by_property (props,
index 8c900913ba724858824005c7899832ceae90c823..29984722eaf012e9b663c709e339676b82fcdd26 100644 (file)
@@ -3251,8 +3251,8 @@ gtk_css_provider_get_named (const gchar *name,
 static int
 compare_properties (gconstpointer a, gconstpointer b)
 {
-  return strcmp (((GtkStyleProperty *) a)->pspec->name,
-                 ((GtkStyleProperty *) b)->pspec->name);
+  return strcmp (_gtk_style_property_get_name ((GtkStyleProperty *) a),
+                 _gtk_style_property_get_name ((GtkStyleProperty *) b));
 }
 
 static void
@@ -3277,7 +3277,7 @@ gtk_css_ruleset_print (const GtkCssRuleset *ruleset,
           const PropertyValue *value = g_hash_table_lookup (ruleset->style, prop);
 
           g_string_append (str, "  ");
-          g_string_append (str, prop->pspec->name);
+          g_string_append (str, _gtk_style_property_get_name (prop));
           g_string_append (str, ": ");
           _gtk_style_property_print_value (prop, &value->value, str);
           g_string_append (str, ";\n");